<?php

namespace app\index\controller;

use think\Request;
use think\Session;

abstract class Base{

    final function __construct(){
//        $request = Request::instance();
//        $url = strtolower('/'.$request->controller().'/'.$request->action());
//        $accessUrls = Session::get('accessUrls');
//        if(!empty($accessUrls)&&!empty($accessUrls[$url])){
//            return;
//        }
//        header('HTTP/1.1 403');
//        header('Content-Type:application/json;charset=UTF-8');
//        echo '["请登录后访问"]';
//        die;
    }
}
